
/**
 * 根据val 获取lable
 * */
export const FilterMenuTypeLable = (value, list) => {
    let label = null
    if (list.length) {
        list.forEach(item => {
            if ((item.value + '') === (value + '')) {
                label = item.label
            }
        })
    }
    return label
}


/**
 * 根据table 获取val
 * */
export const FilterMenuTypeVal = (label, list) => {
    let value = null
    if (list.length) {
        list.forEach(item => {
            if ((item.label + '') === (label + '')) {
                value = item.value
            }
        })
    }
    return value - 0
}


